<template>
    <van-grid :border="false" :column-num="2">
        <van-grid-item v-for="(v, i) in list" :key="i">
            <van-image
                :src="v.goods_small_logo ? v.goods_small_logo : 'http://image2.suning.cn/uimg/b2c/newcatentries/0070078057-000000000634917020_1_400x400.jpg'" />
        </van-grid-item>
    </van-grid>
</template>

<script setup>
import { ref } from 'vue'
import { searchApi } from '@/api/api';

let list = ref([])
const search = () => {
    searchApi().then(res => {
        list.value = res.data.message.goods
    })
}
search()
</script>

<style lang="scss" scoped></style>